﻿using SharedKernel;

namespace Domain.Todos;

public static class TodoItemErrors
{
    public static readonly Error AlreadyCompleted = Error.Problem(
        "TodoItems.AlreadyCompleted",
        "The todo item is already completed.");

    public static readonly Error NotCompleted = Error.Problem(
        "TodoItems.NotCompleted",
        "The todo item is not completed yet.");

    public static Error NotFound(Guid todoItemId) => Error.NotFound(
        "TodoItems.NotFound",
        $"The to-do item with the Id = '{todoItemId}' was not found");
}
